import Vue from 'vue'
import VueRouter from 'vue-router';
import detailView from '@/views/detailView.vue'
import newView from '@/views/newView.vue'
import logoView from '@/views/logoView.vue';
import houseView from '@/views/houseView.vue';
import informationView from '@/views/informationView.vue';
import mineView from '@/views/mineView.vue';
Vue.use(VueRouter)

const router = new VueRouter({
    routes: [
    { path: '/new', component: newView },
    { path: '/detail', component: detailView },
        {
            path: '/', component: detailView,
            redirect: '/logo',
            children: [
    { path: '/logo', component: logoView },
    { path: '/house', component: houseView },
    { path: '/information', component: informationView },
    { path: '/mine', component: mineView },
        ]
    },
        
  ]
})
export default router